export default defineEventHandler(async (event) => {
  await useTable(TABLE.MAIN).where({ state: 1 }).update({ state: 0 })
  const { key } = event.context
  useWsSyncData(key)
  return resSuccess()
})
